package com.zg.datapush.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zg.common.core.vo.BaseEntityVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 推送日志详情VO
 * @author zg
 */
@Data
@ApiModel("推送日志详情")
public class DpPushLogVo extends BaseEntityVo {

    @ApiModelProperty("推送记录ID")
    private Long recordId;

    @ApiModelProperty("步骤名称")
    private String stepName;

    @ApiModelProperty("步骤顺序")
    private Integer stepOrder;

    @ApiModelProperty("方法名称")
    private String methodName;

    @ApiModelProperty("类名")
    private String className;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty("执行耗时（毫秒）")
    private Long duration;

    @ApiModelProperty("执行状态")
    private String status;

    @ApiModelProperty("输入参数")
    private String inputData;

    @ApiModelProperty("输出结果")
    private String outputData;

    @ApiModelProperty("错误信息")
    private String errorMessage;

    @ApiModelProperty("异常堆栈")
    private String stackTrace;
}
